<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="com.jiadakeji.ppm.modules.sys.utils.*" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
    <title>发票预览</title>
    <meta name="decorator" content="default"/>
    <link href="${ctxStatic}/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="${ctxStatic}/css/animate.min.css" rel="stylesheet">
    <link href="${ctxStatic}/css/common.css" rel="stylesheet">
    <link href="${ctxStatic}/css/style.min.css?v=4.0.0" rel="stylesheet">
    <OBJECT ID=sk
            CLASSID="clsid:003BD8F2-A6C3-48EF-9B72-ECFD8FC4D49F"
            codebase="NISEC_SKSCX.ocx#version=1,0,0,1">
    </OBJECT>
    <script type="text/javascript">
        $(document).ready(function() {
            //$("#name").focus();
            $("#inputForm").validate({
                submitHandler: function(form){

                },
                errorContainer: "#messageBox",
                errorPlacement: function(error, element) {
                    $("#messageBox").text("输入有误，请先更正。");
                    if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
                        error.appendTo(element.parent().parent());
                    } else {
                        error.insertAfter(element);
                    }
                }
            });
        });
    </script>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content  animated fadeInRight">
    <div class="col-sm-12">
        <div class="tabs-container ">
            <div id="tab-1" class="tab-pane active">
                <div class="panel-body boxPanel">
                        <sys:message content="${message}"/>
                        <div class="boxHeight">
                            <fieldset>
                                <legend>购货方信息</legend>
                                <div class="control-group">
                                    <div class="row-fluid">
                                        <div class="span6">
                                            <label class="control-label2">购货方名称：</label>
                                            <div class="controls2">

                                                <span class="help-inline"><font color="red">*</font> </span>
                                            </div>
                                        </div>
                                        <div class="span6">
                                            <label class="control-label2">购货单位识别号：</label>
                                            <div class="controls2">

                                                <span class="help-inline"><font color="red">*</font> </span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="control-group">
                                    <div class="row-fluid">
                                        <div class="span6">
                                            <label class="control-label2"> 购货单位地址电话：</label>
                                            <div class="controls2">

                                                <span class="help-inline"><font color="red">*</font> </span>
                                            </div>
                                        </div>
                                        <div class="span6">
                                            <label class="control-label2">购货单位银行账号：</label>
                                            <div class=" controls2">
                                                <form:input path="userInfo.paperWork" htmlEscape="false" maxlength="64" class="input-medium required"  />
                                                <span class="help-inline"><font color="red">*</font> </span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </fieldset>
                            <fieldset>
                                <legend>费用项目</legend>
                                <c:forEach items="${}" var="">
                                    <div class="control-group">
                                        <div class="row-fluid">
                                            <div class="span1">
                                                <label class="control-label2">商品名称：</label>
                                                <div class="controls2">

                                                    <span class="help-inline"><font color="red">*</font> </span>
                                                </div>
                                            </div>
                                            <div class="span1">
                                                <label class="control-label2">规格型号：</label>
                                                <div class="controls2">

                                                    <span class="help-inline"><font color="red">*</font> </span>
                                                </div>
                                            </div>
                                            <div class="span1">
                                                <label class="control-label2">单位：</label>
                                                <div class="controls2">

                                                    <span class="help-inline"><font color="red">*</font> </span>
                                                </div>
                                            </div>
                                            <div class="span1">
                                                <label class="control-label2">数量：</label>
                                                <div class="controls2">

                                                    <span class="help-inline"><font color="red">*</font> </span>
                                                </div>
                                            </div>
                                            <div class="span1">
                                                <label class="control-label2">单价：</label>
                                                <div class="controls2">

                                                    <span class="help-inline"><font color="red">*</font> </span>
                                                </div>
                                            </div>
                                            <div class="span1">
                                                <label class="control-label2">金额：</label>
                                                <div class="controls2">

                                                    <span class="help-inline"><font color="red">*</font> </span>
                                                </div>
                                            </div>
                                            <div class="span1">
                                                <label class="control-label2">税率：</label>
                                                <div class="controls2">

                                                    <span class="help-inline"><font color="red">*</font> </span>
                                                </div>
                                            </div>
                                            <div class="span1">
                                                <label class="control-label2">税额：</label>
                                                <div class="controls2">

                                                    <span class="help-inline"><font color="red">*</font> </span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </c:forEach>

                            </fieldset>
                            <div class="control-group">
                                <div class="row-fluid">
                                    <div class="span6">
                                        <label class="control-label2">销货单位名称：</label>
                                        <div class="controls2">

                                            <span class="help-inline"><font color="red">*</font> </span>
                                        </div>
                                    </div>
                                    <div class="span6">
                                        <label class="control-label2">销货单位识别号：</label>
                                        <div class="controls2">

                                            <span class="help-inline"><font color="red">*</font> </span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="control-group">
                                <div class="row-fluid">
                                    <div class="span6">
                                        <label class="control-label2"> 销货单位地址电话：</label>
                                        <div class="controls2">

                                            <span class="help-inline"><font color="red">*</font> </span>
                                        </div>
                                    </div>
                                    <div class="span6">
                                        <label class="control-label2">销货单位银行账号：</label>
                                        <div class=" controls2">
                                            <form:input path="userInfo.paperWork" htmlEscape="false" maxlength="64" class="input-medium required"  />
                                            <span class="help-inline"><font color="red">*</font> </span>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            </fieldset>
                        </div>

                        <div class="btnDiv">
                            <shiro:hasPermission name="threeuserInfo:infoAndSettle:edit"><input id="btnSubmit" class="btn btn-warning" type="button" value="打印" onclick="fillInvioce()"/>&nbsp;</shiro:hasPermission>
                            <input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
                        </div>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
<script type="text/javascript">
    $(document).ready(function() {

    });

    function fillInvioce(){
        var sInputInfo = "<?xml version=\"1.0\" encoding=\"gbk\"?>\n" +
                         "<business id=\"10008\" comment=\"发票开具\">\n" +
                         "<body yylxdm=\"1\">\n" +
                         "<kpzdbs></kpzdbs>\n" +
                         "<fplxdm></fplxdm>\n" +
                         "<fpqqlsh></fpqqlsh>\n" +
                         "<kplx>0</kplx>\n" +
                         "<tspz>00</tspz>\n" +
                         "<xhdwsbh></xhdwsbh>\n" +
                         "<xhdwmc></xhdwmc>\n" +
                         "<xhdwdzdh></xhdwdzdh>\n" +
                         "<xhdwyhzh></xhdwyhzh>\n" +
                         "<ghdwsbh></ghdwsbh>\n" +
                         "<ghdwmc></ghdwmc>\n" +
                         "<ghdwdzdh></ghdwdzdh>\n" +
                         "<ghdwyhzh></ghdwyhzh>\n" +
                         "<qdbz>0</qdbz>\n" +
                         " <zsfs>0</zsfs>\n" +
                         "<fyxm count=\"1\">\n" +
                         "<group xh=\"1\">\n" +
                         "<fphxz></fphxz>\n" +
                         "<spmc></spmc>\n" +
                         "<spsm></spsm>\n" +
                         "<ggxh></ggxh>\n" +
                         "<dw></dw>\n" +
                         "<spsl></spsl>\n" +
                         "<dj></dj>\n" +
                         "<je></je>\n" +
                         "<sl></sl>\n" +
                         "<se></se>\n" +
                         "<hsbz></hsbz>\n" +
                         "<spbm></spbm>\n" +
                         "<zxbm></zxbm>\n" +
                         "<yhzcbs></yhzcbs>\n" +
                         "<lslbs></lslbs>\n" +
                         "<zzstsgl></zzstsgl>\n" +
                         "</group>\n" +
                         "</fyxm>\n" +
                         "<hjje></hjje>\n" +
                         "<hjse></hjse>\n" +
                         "<jshj></jshj>\n" +
                         " <kce></kce>\n" +
                         "<bz></bz>\n" +
                         "<skr></skr>\n" +
                         "<fhr></fhr>\n" +
                         "<kpr></kpr>\n" +
                         "<tzdbh></tzdbh>\n" +
                         "<yfpdm></yfpdm>\n" +
                         "<yfphm></yfphm>\n" +
                         "</body>\n" +
                         "</business>";
    }
</script>

</body>
</html>